#-*- coding:utf8 -*-

from django.test import TestCase

import unittest
from models import Projects
from master.models import Companies
from django.contrib.auth.models import User

class SimpleTest(TestCase):
    def test_basic_addition(self):
        """
        Tests that 1 + 1 always equals 2.
        """
        self.failUnlessEqual(1 + 1, 2)

__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.

>>> 1 + 1 == 2
True
"""}





class ProjectsTestCase(TestCase):
    
    company = None
    
    from master.tests import UserProfilesTestCase
    
    '''
    t = UserProfilesTestCase()
    
    import django.test import TestSuite
    print '------------------'
    print TestSuite

    #t.test_foo()
    '''
    
    '''
    def __init__(self):
        self.company = Companies.objects.all()[0]
        print '^^^^^^^^^^^^^^^^^^^^^'
        print self.company
        print '^^^^^^^^^^^^^^^^^^^^^'
    '''
    
    def setUp(self):
        
        user = User.objects.create_user('ok49', 'ok4949@gmail.com', '123')
        user.save()
        
        print '-_-)/'
        print User.objects.all()
        print len(User.objects.all())
        
        #self.company = Companies.objects.all()[0]
        
        #self.assertEqual(1, len(User.objects.all()))
        
        
    
        
        
    def test_foo(self):
        print '@@@@@@@@@@@@@@@@@@@@@@@'
        print self.company
        print '@@@@@@@@@@@@@@@@@@@@@@@'
        
        self.assertEqual(1, 1)
        
        
        
        
        
        
        
        
        
        
        

